package pack0624;


public class Grandfather extends Object{
    public String name="张无忌";
    public int age=20;
    public Grandfather(){
        System.out.println("爷爷的无参构造器");
    }
    public Grandfather(String n){
        System.out.println("爷爷的带String类型参数构造器");
    }
    public Grandfather(String n,int a){
        System.out.println("爷爷的带String类型和int类型参数构造器");

    }
}
